package com.jsy.common.util;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

public class Message implements Serializable {

    //执行的操作 1.增加 2.修改 3.删除
    private int code;

    //数据
    private Object content;

    //发送的routekey
    @JSONField(serialize = false)
    private String routeky;

    //交换机
    @JSONField(serialize = false)
    private String exchange;

    public Message() {
    }

    public Message(int code, Object content, String routeky, String exchange) {
        this.code = code;
        this.content = content;
        this.routeky = routeky;
        this.exchange = exchange;
    }

    public Message(int code, Object content) {
        this.code = code;
        this.content = content;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public String getRouteky() {
        return routeky;
    }

    public void setRouteky(String routeky) {
        this.routeky = routeky;
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }
}